local autocmd = vim.api.nvim_create_autocmd
local augroup = vim.api.nvim_create_augroup
-- autocmd("TermClose", {
--   pattern = "*lazygit*",
--   desc = "Refresh Neo-Tree filesystem when closing lazygit",
--   group = augroup("neotree_fs_refresh", { clear = true }),
--   callback = function()
--     if package.loaded["neo-tree.sources.manager"] then require("neo-tree.sources.manager").refresh("filesystem") end
--   end,
-- })
autocmd("FileType", { pattern = "json", command = "set filetype=jsonc" })
